package cn.iocoder.yudao.module.dt.convert.wxnews;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import cn.iocoder.yudao.module.dt.controller.admin.wxnews.vo.*;
import cn.iocoder.yudao.module.dt.dal.dataobject.wxnews.WxNewsDO;

/**
 * 新闻 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface WxNewsConvert {

    WxNewsConvert INSTANCE = Mappers.getMapper(WxNewsConvert.class);

    WxNewsDO convert(WxNewsCreateReqVO bean);

    WxNewsDO convert(WxNewsUpdateReqVO bean);

    WxNewsRespVO convert(WxNewsDO bean);

    List<WxNewsRespVO> convertList(List<WxNewsDO> list);

    PageResult<WxNewsRespVO> convertPage(PageResult<WxNewsDO> page);

    List<WxNewsExcelVO> convertList02(List<WxNewsDO> list);

}
